package top.lunarye.handler.deduplication;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.lunarye.common.domaim.TaskInfo;
import top.lunarye.common.enums.AnchorState;

/**
 * 去重服务需要的参数
 * @author lunar
 * @since 2022-07-19
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeduplicationParam {

    private TaskInfo taskInfo;

    @JSONField(name = "time")
    private Long deduplicationTime;

    @JSONField(name = "num")
    private Integer countNum;

    // 数据埋点，表示消息结果
    private AnchorState anchorState;
}
